#include<stdio.h>
int main()
{
	int arr[10], b, * p1, * p2;
	int i = 0;
	for (i = 0; i < 10; i++)
		scanf_s("%d", &arr[i]);
	p1 = arr;
	p2 = arr + 9;
	for (; p1 < p2; p1++, p2--)
	{
		b = *p1;
		*p1 = *p2;
		*p2 = b;
	}
	for (i = 0; i < 10; i++)
		printf("%d ", arr[i]);
	return 0;
}